<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>可替换元素的伪元素用法</title>
    <style>
        img{
            position: relative;
        }
        img:hover:after{
            content: '我喜欢你';
            position: absolute;
            left:150px;
            font-size: 25px;
            color: fuchsia;
            bottom: 10px;
        }
    </style>
</head>
<body>
<!--当他为替换元素时，他还真的不能用伪元素-->
<img src="80页之前代码测试/0.jpg"/>
</body>
</html>